﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Project.Core.Model
{
    /// <summary>
    /// 基类
    /// </summary>
    public partial class BaseModel
    {
        /// <summary>
        /// id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] //是主键, 还是标识列
        public int Id { get; set; }

        /// <summary>
        /// 增加时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime DeleteTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsValid { get; set; }
    }
}
